package me.zhengjie.modules.lock.service.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.zelk.smartlock.common.constant.Constant;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

@ApiModel("门锁详情中售后信息")
@Data
@JsonInclude(JsonInclude.Include.ALWAYS)
public class LockLeaseBackInfoDTO implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "售后id", dataType = "Long")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long LeaseBackId;

    @ApiModelProperty(value = "售后状态", dataType = "int")
    private Integer status;
    @ApiModelProperty(value = "售后状态描述", dataType = "String")
    private String statusDesc;

    @ApiModelProperty(value = "检查者", dataType = "String")
    private String checkUserName;

    @ApiModelProperty(value = "检查者手机号", dataType = "String")
    private String checkUserPhone;

    @ApiModelProperty(value = "开始时间")
    @JsonFormat(pattern = Constant.DATA_FORMAT, timezone = Constant.TIME_ZONE)
    private LocalDateTime startTime;

    @ApiModelProperty(value = "结束时间")
    @JsonFormat(pattern = Constant.DATA_FORMAT, timezone = Constant.TIME_ZONE)
    private LocalDateTime endTime;

}
